from flask_restful import fields

# 用户
user_fields = {
    'uid':fields.Integer,
    'account':fields.String,
    'uname':fields.String,
    'password':fields.String,
    'profile_photo':fields.String,
    'gender':fields.Integer,
    'created_time':fields.DateTime,
}

# 频道
channel_fields={
    'cid':fields.Integer,
    'cname':fields.String,
    'ctime':fields.DateTime,
    'sequence':fields.Integer,
    'is_visible':fields.Integer,
}

# 文章
news_fields={
    'nid':fields.Integer,
    'user_id':fields.Integer,
    'title':fields.String,
    'comment_count':fields.Integer,
    'content':fields.String,
    'cover':fields.String,
    'good_count':fields.Integer

}

# 文章评论
comment_fields = {
    'cmid':fields.Integer,
    'user_id':fields.Integer,
    'article_id':fields.Integer,
    'parent_id':fields.Integer,
    'like_count':fields.Integer,
    'reply_count':fields.Integer,
    'content':fields.String,
    'is_top':fields.Integer,
    'status':fields.Integer,
    'ctime':fields.DateTime
}